var WebSocketServer = require('ws').Server
var wss = new WebSocketServer({
  port: 8888,
  backlog: 2,
})

wss.on('connection', function (ws) {
  console.log('客户端已连接 !!!')
  ws.on('message', function (message) {
    console.log(message)
  })
})
